Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

(win32) fix: converting utf-8 into utf-16 string inside set_tooltip method #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fenex
Copy link

@Fenex Fenex commented Feb 29, 2020

No description provided.

let size_tooltip = tooltip.len();
let size_available = std::mem::size_of_val(&nid.szTip) >> 1; //length in u16
if size_available < size_tooltip {
return unsafe { Err(get_win_os_error("Error setting tooltip")) };
Copy link
Author

@Fenex Fenex Feb 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure for correct line 310.

@Fenex Fenex changed the title (win32) fix: converting utf-8 into utf-16 string for tooltip (win32) fix: converting utf-8 into utf-16 string on set_tooltip method Feb 29, 2020
@Fenex Fenex changed the title (win32) fix: converting utf-8 into utf-16 string on set_tooltip method (win32) fix: converting utf-8 into utf-16 string inside set_tooltip method Feb 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant